package com.ruoyi.web.controller.interfaceConfig.businessObject;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.interfaceConfig.businessObject.domain.BusinessFieldSetting;
import com.ruoyi.interfaceConfig.businessObject.service.IBusinessFieldSettingService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author YiYuan
 * @description
 * @date 2024/2/26
 */
@RestController
@RequestMapping("/interfaceConfig/businessFieldSetting")
@RequiredArgsConstructor
public class BusinessFieldSettingController extends BaseController {
    private final IBusinessFieldSettingService businessFieldSettingService;

    @GetMapping("/list")
    public TableDataInfo listByBusinessObjectId(BusinessFieldSetting businessFieldSetting) {
        startPage();
        List<BusinessFieldSetting> list = businessFieldSettingService.selectBusinessFieldSettingList(businessFieldSetting);
        return getDataTable(list);
    }


}
